/**  商品路由 */
const Router = require('koa-router')
const { createGoods, deleteGoodsByProductId, updateGoods, getGoods } = require('../controller/goodsController')

const router = new Router({ prefix: '/goods' })

router.post('/createGoods', createGoods)
router.delete('/deleteGoods', deleteGoodsByProductId)
router.put('/updateGoods', updateGoods)
router.get('/getGoods', getGoods)

// 导出
module.exports = router